if (process.env.PATH_ENV === 'prod'||process.env.PATH_ENV === 'test') {
    Vue.config.devtools = true //开发环境
}
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import axios from 'axios';
import 'element-ui/lib/theme-chalk/index.css';
import store from "../public/store";

axios.defaults.baseURL = '/api'

//------------------------------------------------------------请求----------------------------------------------------
import http from '../common/http.js'

Vue.prototype.http = http;
//api
import apis from '../common/api'

Vue.prototype.$apis = apis

//------------------------------------------------------------组件----------------------------------------------------


Vue.use(ElementUI);

//------------------------------------------------------------工具类----------------------------------------------------
//图片拼接
import {imgUrl} from "../public/filter/https_img";

Vue.prototype.$qimg = imgUrl;
Vue.filter('qimg', imgUrl)
import {sliceStr, onBreak, noNull, wipeOutn} from '../public/public';
//文字截取
Vue.prototype.$sliceStr = sliceStr
Vue.filter('sliceStr', sliceStr)
//后退
Vue.prototype.$onBreak = onBreak
//判断是否为空
Vue.prototype.$noNull = noNull
//去空
Vue.prototype.$wipeOutn = wipeOutn

Vue.config.productionTip = false
Vue.prototype.$axios = axios

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    axios,
    store,
    components: {App},
    template: '<App/>'
})
